<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="/Dyna/js/dojo.js"></script>
</head>
<body>

</body>
<script type="text/javascript">
dojo.addOnLoad(function() {
	dojo.xhrGet({
		 url: "services/hallo/users", // read the url: from the action="" of the <form>
	      handleAs:"json",
	      timeout: 5000, // give up after 5 seconds
	      load: function(data, ioArgs){
	    	  alert (data.users[0].email);
	      },
	      error: function(err, ioArgs){
          // again, ioArgs is useful, but not in simple cases
         alert( error );
        }
	});
});
</script>
</html>